package org.colafries.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * @author colafries
 * @version v1.0
 * @ClassName yesOrNo
 * @Description
 * @date Created in 2024/3/18
 **/
@Getter
public enum Flag {

    YES(1, "yes"),
    NO(0, "no");

    Flag(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    @EnumValue
    private final Integer code;

    private final String value;
}
